<!doctype html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Custom Bootstrap</title>
    <link rel="stylesheet" href="css/bootstrap.css">
    <link rel="stylesheet" href="css/prism.css">
    <link rel="stylesheet" href="css/site.css">
</head>

<body>

    <div id="app" class="d-flex">
        <header id="app-header" class="bg-light h-100 border-end">
            <ul>
                <li>
                    <h2>内容</h2>
                    <ul>
                        <li><a href="html/reboot.html" class="loadContentLink">重置</a></li>
                        <li><a href="html/typography.html" class="loadContentLink">排版</a></li>
                    </ul>
                </li>
            </ul>
        </header>
        <main id="app-main" class="p-4"></main>
    </div>

    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.bundle.min.js"></script>
    <script>
        $(document).ready(function () {
            $('.loadContentLink').click(function (event) {
                event.preventDefault();
                var url = $(this).attr('href');
                $('#app-main').load(url);
            });
        });
    </script>
</body>

</html>